ActionController::Routing::Routes.draw do |map|
  MootoolsOnRails.routes
  map.connect               "sitemap.xml",                          :controller => "sitemap",   :action => "index"
  map.signup                '/signup',                              :controller => 'users',     :action => 'new'
  map.login                 '/login',                               :controller => 'session',   :action => 'new'
  map.logout                '/logout',                              :controller => 'session',   :action => 'destroy'
  map.search                '/search',                              :controller => 'search',    :action => 'index'
  map.home                  '/home',                                :controller => 'home',      :action => 'index'
  map.search_galleries      '/search/galleries',                    :controller => 'search',    :action => 'galleries'
  map.search_photos         '/search/photos',                       :controller => 'search',    :action => 'photos'
  map.search_videos         '/search/videos',                       :controller => 'search',    :action => 'videos'
  map.search_users          '/search/users',                        :controller => 'search',    :action => 'users'
  map.search_comments       '/search/comments',                     :controller => 'search',    :action => 'comments'
  map.gallery_photo_search  '/search/gallery_photos',               :controller => 'search',    :action => 'gallery_edit_photos'
  map.resource              :session,                               :controller => 'session'
  map.resources             :menus                                  
  map.resources             :comments                               
  map.resources             :users                                  
  map.completed_orders      '/orders?display=completed',            :controller => 'orders',    :action => 'index'
  map.user_orders           '/orders/?process=shopping_cart',       :controller => 'orders',    :action => 'index'
  map.send_request          '/galleries/send_request/:id',          :controller => 'galleries', :action => 'send_request'
  map.gallery_approvals     '/galleries/:id/approvals',             :controller => 'galleries', :action => 'approvals'
  map.resources             :pages                                  
  map.resources             :photos,                                :collection => {'update_many' => :put}
  map.resources             :videos                                 
  map.resources             :galleries
  map.resources             :price_lists
  map.resources             :partnerships,                          :collection => {'destroy' => :delete}                  
  map.user_galleries        '/users/:id/galleries',                 :controller => 'users',     :action => 'galleries'
  map.resources             :items                                  
  map.resources             :orders                                 
  map.order_checkout        '/orders/:id?process=checkout',         :controller => 'orders',     :action => 'checkout'
  map.resources             :shipping_methods                       
  map.resources             :order_extras                           
  map.resources             :order_options                          
  map.resources             :item_options                           
  map.resources             :photo_sizes                            
  map.settings              '/settings',                            :controller => 'settings',  :action => 'index'
  map.connect               '',                                     :controller => 'home',      :action => 'index'
  map.connect               ':controller/:action/:id'               
  map.connect               ':controller/:action/:id.:format'       
end
